//
//  MJTableView.h
//  GoodEit
//
//  Created by ihope99 on 2017/8/10.
//  Copyright © 2017年 GZX. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol MJTableViewDelegate <NSObject>

@optional;
-(void)MjRoadMoreAction;
@optional;
-(void)MjReloadAction;

@end

@interface MJTableView : UITableView<UIScrollViewDelegate>

@property (nonatomic,weak)id<MJTableViewDelegate> mjDelegate;
@property (nonatomic,assign)BOOL showHeader;
@property (nonatomic,assign)BOOL showFooter;
/// 下拉刷新
@property (nonatomic,copy)void(^mjRefreshDataBlock)(void);
/// 下拉加载
@property (nonatomic,copy)void(^mjLoadingMoreDataBlock)(void);
@property (nonatomic,strong)NSMutableDictionary *cacheHeightDict;

-(void)beginRefreshing;
-(void)endRefresh;
///请求失败传YES  其他按照还有没有数据传值
-(void)loadEndView:(BOOL)is_Hidden;

@end
